package edu.njfu.sas.dao;

import edu.njfu.sas.model.Student;

import java.sql.SQLException;
import java.util.List;

public interface  StudentDao {
    //没有方法体，表示声明
    List<Student> getAllStudent() throws SQLException;
    List<Student> getStudentByName(String name);
    boolean saveStdudent(Student s);
    Student getStudentByNo(String no);
    boolean updateStudent(Student s);
    boolean deleteStudentByNo(String no);
    public List<Student> getStudentByPaging(int currentPage, int pageSize);
//    boolean registerStudent(String userName,String password);
    long totalRecords();


}
